<template>
  <div class="home-search">
    <div>
      <input class="home-input" type="text" placeholder="搜索商品" @click="goSome"/>
      <van-icon name="search" class="fangdaj"/>
    </div>
    <div class="home-all">
        <h3 @click="goMenu">
          ALL <br />
          <span>分类</span>
        </h3>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    goMenu(){
      this.$router.push("./Menu");
    },
    goSome(){
      this.$router.push("./Something");
    }
  }
};
</script>

<style scoped>
.home-search {
  padding: 0.14rem;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  display: flex;
  background-color: aqua;
  justify-content: space-between;
}
.home-input {
  width: 2.65rem;
  height: 00.32rem;
  outline: none;
  padding-left: 00.35rem;
   border-radius: 0.1rem;
   border: none;
}
.home-all h3 {
  font-size: 0.16rem;
  line-height: 0.16rem;
  text-align: center;
}
.home-all span {
  font-size: 0.08rem;
}
.fangdaj{
  position: absolute;
  top: 0.2rem;
  left: 00.3rem;
}
</style>